package test.runtime2;

import service.network.NetworkManageService;
import materials.network.AbstractNetworkCreation;
import materials.network.NetworkInterface;
import materials.network.NeuronalNetwork;
import materials.neurons.Neurons;

public class RechenViehNetz2 extends AbstractNetworkCreation{

	
	public RechenViehNetz2(){
		createNet();
	}

	private void createNet() {
		NetworkInterface ni = new NeuronalNetwork();
		NetworkManageService nms = new NetworkManageService(ni);
		
		nms.raiseLayer();
		nms.raiseLayer();
		
		nms.addNeuronToNetwork(1, "a", Neurons.Linear);
		nms.addNeuronToNetwork(2, "b", Neurons.Linear);
		
		nms.connectTwoNeurons(1, "a", "b");
		
		nms.setWeightOfTwoNeurons(1, "a", "b", 0.5);
	
		addNet(ni);
	}
}
